//
//  SWMyselfInfoFetchReq.swift
//  ChildStory
//
//  Created by linhan on 16/8/31.
//  Copyright © 2016年 Aiya. All rights reserved.
//

import Foundation
class SWMineInfoFetchReq: SWBaseRequest
{
    override init()
    {
        super.init()
        api = .MineInfoFetch
    }
    
    override func JSONToModel(_ json:JSON, JSONString:String, JSONData:Data) -> AnyObject?
    {
        return Mapper<SWMineInfoFetchRsp>().map(JSONString: JSONString)
    }
}

class SWMineInfoFetchRsp: NSObject,Mappable
{
    var data:SWAuthDataRsp?
    
    required init?(map: Map) { }
    
    // Mappable
    func mapping(map: Map) {
        data    <- map["BaseModle"]
    }
}
